Object-Oriented Programming
Table of Contents
- ActionScript Overview
- Introduction to ActionScript 2.0
- ActionScript 2.0 Language Details
- Migrating from ActionScript 1.0 to ActionScript 2.0
- Object-Oriented Programming
ActionScript 2.0 is fully object-oriented programming (OOP) language that provides several benefits to programmers, especially when creating large-scale Flash applications or presentations. OOP encourages reusability. You reuse a class you created in ActionScript 2.0 by inheriting the functionality of that class in other classes. The modular nature of OOP lets you replace or swap components of an application without changing the application's structure. Finally, the fundamental metaphors of OOP design closely mirror the natural world (objects that have internal states and can do certain things), which speeds and facilitates the application design process.
For a useful visual representation of the relationship between classes and objects, see The Nature of an Object. For a general introduction to the principles of OOP, see Principles of Object-Oriented Programming.
Documentation
Related Resources
Tutorials and Samples
The Nature of an Object (OOP in Director and Flash)
Learn about the relationship between classes and objects in this illustrated article on object-oriented programming.
Creating 3D Classes with ActionScript 2.0
Create 3D scenes in Macromedia Flash using a class-based programming model and quaternion math for fast, efficient transformations.
Creating Movie Clip Subclasses in ActionScript 2.0
Follow the bouncing ball to learn how easy ActionScript 2.0 makes it to create movie clips with predefined behaviors.